/*
 * @Author: ylq
 * @Date: 2022-09-19 15:35:08
 * @Desc: DESC
 * @Last Modified by: ylq
 * @Last Modified time: 2023-12-13 16:01:42
 */
const DEFAULT_LAYOUT = () => import('@/layout/main-layout.vue');

const TASKROUTER = {
  path: '/task',
  name: 'task',
  component: DEFAULT_LAYOUT,
  redirect: { name: 'task-index' },
  meta: {
    title: '首页',
    requiresAuth: true,
    hideChildrenInMenu: true,
    // roles: 'task',
    order: 0
  },
  children: [
    {
      path: '',
      name: 'task-index',
      component: () => import('@/views/task/task.vue'),
      meta: {
        requiresAuth: true,
        title: '任务'
      }
    },
    {
      path: 'detail:id',
      name: 'task-detail',
      component: () => import('@/views/task/detail/detail.vue'),
      meta: {
        single: true,
        requiresAuth: true,
        title: '任务详情'
      }
    }
  ]
};

export default TASKROUTER;
